import { PageEnum } from '/@/enums/pageEnum';

// 编辑器
export default {
  path: PageEnum.EDITOR,
  name: 'EDITOR',
  redirect: PageEnum.EDITOR_DRAFTS,
  meta: {
    requiredAuth: true,
    isFullPage: true,
  },
  children: [
    {
      path: PageEnum.EDITOR_DRAFTS,
      name: 'EDITOR_DRAFTS',
      component: () => import('/@/views/editor/drafts/Drafts.vue'),
    },
    // 写新文章
    {
      path: PageEnum.EDITOR_DRAFTS_NEW,
      name: 'EDITOR_DRAFTS_NEW',
      component: () => import('/@/views/editor/drafts/Editor.vue'),
    },
    // 编辑文章
    {
      path: PageEnum.EDITOR_DRAFTS_ID_PATTERN,
      name: 'EDITOR_DRAFTS_EDIT',
      component: () => import('/@/views/editor/drafts/Editor.vue'),
    },
  ],
};
